<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>individual_orders</title>
<link href="/css/global.css" rel="stylesheet" type="text/css" />
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<script src="/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/js/fun.js"></script>
</head>

<body>

<div class="headLogin">
	<p class="pLogin"></p>
	<script type="text/javascript" src="/js/login.js"></script>
</div>

<div class="header clearfix">
	<div class="logoPic"><img src="/images/pic/logo.gif" width="400" height="121" ></div>
    <div class="ivy555"><img src="/images/pic/555x121.jpg" width="555" height="121"></div>
</div>

<div class="nav">
	<a href="page/index.html" >Home</a><a href="page/casino.html">Casino</a><a href="page/promotions.html" >Promotions</a><a href="page/players_club.html" >Player Club</a><a href="page/entertainment.html" >Entertainment</a><a href="page/restaurants_lounges.html" >Restaurants & Lounges</a><a href="/index.php?r=event/showList" class="cur">Activity</a>
</div>

<div class="main">
	<div class="activity">
		{{if $pageArray.currentOrders}}
        <div class="mod_a">
            <div class="th_a"><span class="sMark">now Individual orders</span></div>
			{{foreach from=$pageArray.currentOrders key=key item=item}}
            <div class="tb_a">
    			<dl class="detailIntroTxt">
					<dt>Event Title</dt>
					<dd>{{$item.title}}</dd>
                    <dt>order time</dt>
                    <dd>{{$item.start_time_show}} - {{$item.end_time_show}}</dd>
                    <dt>Activity addresss</dt>
                    <dd>{{$item.address}}</dd>
                    <dt>Number of people</dt>
                    <dd>{{$item.number}}</dd>
                    <dt>Activities Introduction</dt>
                    <dd>{{$item.description}}</dd>
                </dl>
                <input type="submit" class="submitBtn" value="cancel" oid="{{$item.id}}" eid="{{$item.eid}}">
            </div>
			{{/foreach}}
        </div>
		{{/if}}
		{{if $pageArray.oldOrders}}
        <div class="mod_a">
            <div class="th_a"><span class="sMark">Old Order List</span></div>
            <div class="tb_a">
                <ul class="ulTxtA clearfix">
					{{foreach from=$pageArray.oldOrders key=key item=item}}
                    <li><span class="sTit"><a href="/index.php?r=event/show&eid={{$item.eid}}" target="_blank">{{$item.title}}</a></span><span class="sTime">status:{{$item.status}}</span></li>
                    {{/foreach}}
                </ul>
				{{include file="frontpage.tpl.htm"}}
            </div>
        </div>
		{{/if}}
	</div>
</div>

<div class="footer">
	<p class="pLogoLinks"><a href="" class="footLogo1"></a><a href="" class="footLogo2"></a><a href="" class="footLogo3"></a><a href="" class="footLogo4"></a><a href="" class="footLogo5"></a><a href="" class="footLogo6"></a><a href="" class="footLogo7"></a><a href="" class="footLogo8"></a><a href="" class="footLogo9"></a><a href="" class="footLogo10"></a><a href="" class="footLogo11"></a><a href="" class="footLogo12"></a><a href="" class="footLogo13"></a><a href="" class="footLogo14"></a><a href="" class="footLogo15"></a></p>
    <p class="footBanner"><img src="/images/pic/footerBanner.gif" width="955" height="52"></p>
    <p class="pTxtLinks"><a href="index.html">Home</a>|<a href="casino.html">Casino</a>|<a href="promotions.html">Promotions</a>|<a href="players_club.html">Players Club</a>|<a href="entertainment.html">Entertainment</a>|<a href="restaurants_lounges.html"> Restaurants &amp; Lounges</a>|<a href="press.html">Press</a>|<a href="careers.html">Careers</a>|<a href="contact.html">Contact</a>|<a href="privacy.html">Privacy Policy</a></p>
    <p class="pCopyRight"><a target="_blank" href="https://mail.starlightcasino.ca">Copyright &copy; Gateway Casinos</a>|<em>All Rights Reserved</em>|<a target="_blank" href="http://bcresponsiblegambling.ca/">Responsible Gaming</a></p>
    <p class="contactUs"><span>Contact Us:</span>82384723049&nbsp;&nbsp;283912649126</p>
</div>
<script>
	$(document).ready(function(){
		$(".submitBtn").click(function(){
			if(confirm("确认取消预订?")){
				var oid = parseInt($(this).attr("oid"), 10);
				var eid = parseInt($(this).attr("eid"), 10);
				$.ajax({
					type : "post",
					url : "/index.php?r=order/cancel",
					data : {oid: oid, eid: eid},
					success : function(msg){
						if(msg == "success"){
							alert("取消成功！");
							location.reload();
						}else{
							alert("取消失败！");
							return false;
						}
					}
				});
			}
		});
	});
</script>
</body>
</html>
